import request from '../utils/request'

// export function getMemberInfoList(currentPage, size) {
//     return request({
//         url: '/memberInfo/getMemberInfoList',
//         method: 'get',
//         params: {
//             pageCount: size,
//             pageNum: currentPage
//         }
//     })
// }
export function getMemberInfoList(currentPage, size, param) {
    return request({
        url: '/memberInfo/getMemberInfoList',
        method: 'get',
        params: {
            pageCount: size,
            pageNum: currentPage,
            query: param
        }
    })
}

export function getMemberINfoById(id) {
    return request({
        url: '/memberInfo/getMemberInfoById',
        method: 'get',
        params: {
            id: id
        }
    })
}

export function deleteMemberInfo(id) {
    return request({
        url: '/memberInfo/deleteMemberInfo',
        method: 'post',
        data: id
    })
}

export function deleteOne(id) {
    return request({
        url: '/memberInfo/deleteMemberInfo',
        method: 'post',
        data: [id]
    })
}

export function updateMemberInfo(params) {
    return request({
        url: '/memberInfo/updateMemberInfo',
        method: 'post',
        data: params
    })
}

export function addMemberInfo(params) {
    return request({
        url: '/memberInfo/addMemberInfo',
        method: 'post',
        data: params
    })
}
